<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2020/1/21
  Time: 11:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.graduation.lastproject.entity.User" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    User userInfo=(User) request.getAttribute("entry");
%>
<c:set var="userInfo" value="<%=userInfo%>" />
<html>
<head>
    <meta charset="UTF-8">
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/bootstrap/css/bootstrapValidator.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/static/toastr/toastr.min.css">

    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <script  src="/static/bootstrap/js/bootstrapValidator.js"></script>
    <script src="/static/toastr/toastr.min.js"></script>
    <script src="/static/js/register/register.js" ></script>
    <title></title>
    <style type="text/css">
        input{
            margin: 2px 0 0 2px;
            padding: 2px 0 0 2px;
        }
        .navbar{
            background-color: #DEB887;
        }
        img{
            width: 34px;
            height: 34px;
        }
        .form-horizontal .control-label{
            padding-top: 0px;
        }
    </style>
    <script type="text/javascript">
        var type='${type}';

        var id='${userInfo.id}'
        console.info("注册还是更新:"+type+"=============用户id:"+id)
    </script>

</head>
<body>
    <nav class="navbar" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="">
                    <span class="glyphicon glyphicon-user" aria-hidden="true" ></span>
                </a>
                <span class="navbar-brand">欢迎注册</span>
            </div>
            <div class="collapse navbar-collapse" id="example-navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="home">首页</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    <form class="form-horizontal center-block" role="form" id="yanzheng">
        <div class="form-group ">
            <label class="col-md-4 control-label"><img src="/static/img/register/user.png" />姓 &nbsp 名:</label>
            <div class="col-md-4">
                <input class="form-control" id="realname"  name="realname"
                       type="text" placeholder="请输入用户名" autocomplete="off" value="${userInfo.realname}"/>
            </div>
        </div>

        <div class="form-group ">
            <label class="col-md-4 control-label"> <img src="/static/img/register/phone.png" />手机号:</label>
            <div class="col-md-4">
                <input class="form-control" id="phone" name="phone"  type="tel" placeholder="可用作登录名" autocomplete="off" value="${userInfo.phone}"/>
            </div>
        </div>

        <div class="form-group" >
            <label class="col-md-4 control-label"><img src="/static/img/register/password.png" />密 &nbsp 码:</label>
            <div class="col-md-4">
                <input class="form-control" id="password" name="password" type="password" placeholder="请输入密码" autocomplete="off" value="${userInfo.password}"/>
            </div>
        </div>

        <div class="form-group" id="pass">
            <label class="col-md-4 control-label"><img src="/static/img/register/password.png" />确 &nbsp 认:</label>
            <div class="col-md-4">
                <input class="form-control" id="repassword" name="repassword" type="password" placeholder="再次输入密码"autocomplete="off" value="${userInfo.password}" />
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-4 control-label"><img src="/static/img/register/email.png" />Email:</label>
            <div class="col-md-4">
                <input class="form-control" id="email"  name="email"  type="text" placeholder="可用作登录名"  autocomplete="off" value="${userInfo.email}"/>
            </div>
        </div>

        <div class="form-group" id="prompt">
            <label class="col-md-4 control-label"><input  id="mustRadio" name="mustRadio"  type="radio"></label>
            <div class="col-md-4">
                <span style="font-size:12px;color:#bfbfbf">请遵守网络环境，一经发现言语过失、违规操作，账号将被拉黑</span>
            </div>
        </div>



        <div class="form-group" id="register">
            <label class="col-sm-2 control-label "> </label>
            <div class="col-sm-4">
                <!--<input class="btn btn-default pull-right" id="" type="submit" value="忘记密码" />
                <input class="btn btn-default pull-right" id="" type="button" value="登录" />-->
                <input class="btn btn-default pull-right"  id="btn-test" value="注册" />
            </div>
        </div>
        <div class="form-group" id="update">
            <label class="col-sm-2 control-label "> </label>
            <div class="col-sm-4">
                <!--<input class="btn btn-default pull-right" id="" type="submit" value="忘记密码" />
                <input class="btn btn-default pull-right" id="" type="button" value="登录" />-->
                <input class="btn btn-default pull-right"  id="btn-update" value="更新">
            </div>
        </div>
    </form>
</body>
</html>
